<?php
namespace app\daifast\model;

use think\Model;
use think\Db; 
use think\View;
class System extends Model
{

    protected function initialize(){
        parent::initialize();
    }
    
    /**
     * 存储系统配置
     */
    public function saveConfig(){
        foreach ($_POST as $k=>$v){
           $k !="sbt" and  Db::table('sys_config')->where('key', $k)->update(['val'=>$v]);  
        }
    }
    
    
    
    
    
}